<h2 class="formdesc">
    表：
    <?php
        $table=new Table();
        $tablearr=$table->queryid($tid);
        echo $tablearr[0]['table_desc'];
    ?>
</h2>
<div class="pricnav">
    <a href="editfiled.php?act=add&tid=<?php echo $tid;?>">添加字段</a>
</div>
<table class="table1">
    <thead>
        <tr>
            <th>ID</th>
            <th>字段名称</th>
            <th>字段描述</th>
            <th>字段类型</th>
            <th></th>
            <th></th>
        </tr>

    </thead>
    <?php
    $fileds = $filed->querytid($tid);
    $i=0; $classname=array('odd','even');
    foreach ($fileds as $v) {
    ?>
        <tr class="<?php echo $classname[$i++%2] ?>">
            <td><?php echo $v['id']; ?></td>
            <td><?php echo $v['filed_name']; ?> </td>
            <td><?php echo $v['filed_desc']; ?></td>
            <td><?php echo $v['filed_type']; ?></td>
            <td><a class="btn" href="<?php echo Fun::curcul() . '&act=del&fid=' . $v['id']?>">删除</a></td>
            <td><a class="btn" href="<?php echo Fun::curcul() . '&act=alt&fid=' . $v['id']?>">修改</a></td>
        </tr>

    <?php
    }
    ?>


</table>